package com.diver.flinkdemo.enums;

import com.diver.flinkdemo.constant.DataConstant;
import lombok.Getter;


/**
 * Created with IntelliJ IDEA.
 *
 * @Description: 数据 标识  枚举-用于逻辑删除及状态控制
 * @Author: zhangB
 * @Date: 2022/6/10 10:25
 */
@Getter
public enum DataEnum {

    /**
     * 启用的数据
     */
    ENABLE(DataConstant.ENABLE, "启用"),
    /**
     * 禁用的数据
     */
    DISABLED(DataConstant.DISABLED, "禁用"),
    /**
     * 正常的数据
     */
    NORMAL(DataConstant.NORMAL, "正常"),

    /**
     * 删除的数据
     */
    DELETED(DataConstant.DELETED, "删除");

    private String code;

    private String message;

    DataEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}

